package com.dka.assistants.common.convert;

import com.dka.assistants.model.dto.user.UserAddRequest;
import com.dka.assistants.model.dto.user.UserUpdateMyRequest;
import com.dka.assistants.model.dto.user.UserUpdateRequest;
import com.dka.assistants.model.entity.User;
import com.dka.assistants.model.vo.LoginUserVO;
import com.dka.assistants.model.vo.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserConverter {

    UserConverter INSTANCE = Mappers.getMapper(UserConverter.class);

    UserVO userToUserVO(User user);

    User userUpdateRequestToUser(UserUpdateRequest userUpdateRequest);

    User userUpdateMyRequestToUser(UserUpdateMyRequest userUpdateMyRequest);

    User userAddRequestToUser(UserAddRequest userAddRequest);

    LoginUserVO userToLoginUserVO(User user);


}
